/ Assembly List / LJCNetCommon / HTMLBuilder / GetHTMLHead

Namespace - LJCNetCommon


Parameters
textState - The current text state values.
title - The page title.
author - The author.
description - The description.

Returns

The common HTML head elements.

Syntax

C#
public String GetHTMLHead(TextState textState, String title = null, String author = null, String description = null)

Gets the common HTML Head elements.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var title = "The Title";
var author = "Mr. Smith";
var description = "The Description";
// Defaults: title = null, author = null, description = null.
var result = hb.GetHTMLHead(textState, title, author, description);

// result:
// <title>The Title</title>r
// <meta name="description" content="The Description" />
// <meta name="author" content="Mr. Smith" />
// <meta name="viewport" content="width=device-width initial-scale=1" />

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.